{% extends "base.html" %}
{% load static %}
{% block title %}创建{% endblock %}
{% block css %}<link rel="stylesheet" href="{% static 'css/update_movie.css' %}">{% endblock %}
{% block content %}

<div class="update-form">
    <div class="status">{{ status | default_if_none:"" }}</div>
    <h3>新增</h3>
    <form method="post">
        {% csrf_token %}
        <div class="update-info">
            <span class="update-key">主题</span>
            <input class="update-value" type="text" name="theme" value='{{ result.theme }}'> 
        </div>
        <div class="update-info">
            <span class="update-key">标题</span>
            <input class="update-value" type="text" name="title" value='{{ result.title }}'> 
        </div>
        <div class="update-info">
            <span class="update-key">序列</span>
            <input class="update-value" type="text" name="sort" list="sortlist"> 
            <datalist id="sortlist">
                <option>1</option>
                <option>2</option>
                <option>3</option>
            </datalist> 
        </div>
        <div class="update-info">
            <span class="update-key">副标题</span>
            <input class="update-value" type="text" name="subtitle"> 
        </div>
        <div class="update-info">
            <span class="update-key">类型</span>
            <input class="update-value" type="text" id="playmode" name="playmode" list="playmodelist" placeholder="请选择类型" oninput="handlePlaymode(event)" value="院线">
            <datalist id="playmodelist">
                <option>院线</option>
                <option>网络</option>
            </datalist> 
        </div>
        <div class="update-info">
            <span class="update-key">维度</span>
            <!-- <input class="update-value" type="text" name="dim">  -->
            <input class="update-value" type="text" name="dim" list="dimlist" placeholder="请选择维度" value={{ result.dim }}>
            <datalist id="dimlist">
                <option>真人</option>
                <option>二维</option>
                <option>三维</option>
                <option>三渲二</option>
            </datalist>
        </div>
        <div class="update-info">
            <span class="update-key">时长</span>
            <input class="update-value" type="text" id="duration" placeholder="以min为单位" name="duration" value=1> 
        </div>
        <div class="update-info">
            <span class="update-key">上映日期</span>
            <input class="update-value" type="text" id="date_start" name="date_start" oninput="handleDateStart(event)"> 
        </div>
        <div class="update-info">
            <span class="update-key">制作公司</span>
            <input class="update-value" type="text" name="producer"  value='{{ result.producer }}'> 
        </div>
        <div class="update-info">
            <span class="update-key">导演</span>
            <input class="update-value" type="text" name="director"  value='{{ result.director }}'> 
        </div>
        

        <input type="submit" value="提交">
</div>

<script>



</script>
    
{% endblock %}